import {Component} from 'angular2/core';
import {ROUTER_DIRECTIVES, RouteConfig} from 'angular2/router';
import {MATERIAL_DIRECTIVES, MATERIAL_PROVIDERS, Media} from "ng2-material/all";
import {ChampionDetailComponent} from "../+ChampionDetail/index";
import {ChampionsComponent} from "../+Champions/index";

@Component({
  selector: 'sd-app',
  templateUrl: 'app/components/app.component.html',
  directives: [ROUTER_DIRECTIVES, MATERIAL_DIRECTIVES],
  providers: [MATERIAL_PROVIDERS, Media]
})
@RouteConfig([
  {path: '/', name: 'Champions', component: ChampionsComponent},
  {path: '/champions/:id', name: "ChampionDetail", component: ChampionDetailComponent}
])
export class AppComponent {

  public SiteName = '<%= APP_TITLE %>';

  constructor() {
  }
}
